package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Category;
import com.itheima.reggie.domain.Dish;

import java.util.List;

public interface DishService {
    //分页查询
    Page<Dish> selectByPage(String name, Integer pageNum, Integer pageSize);

    //更新
    void save(Dish dish);

    //根据id查询
    Dish findById(Long id);

    //修改
    void update(Dish dish);

    //停用/启用方法
    void status(Integer status, List<Long> ids);

    //根据id和status=1，获取获取菜品数据
    List<Dish> findList(String name,Long categoryId, Integer status);
    List<Dish> findList(Long categoryId, Integer status);

    //删除
    void deleteByIds(Long[] ids);
}
